package com.example.controller.handler;

import com.example.annation.Compontent;
import com.example.annation.Order;
import com.example.common.HttpHandlerWeb;
import com.example.http.HttpRequestServer;
import com.example.http.HttpRespServer;
import com.example.socket.ServletRequest;
import com.example.socket.ServletResponse;

import java.util.List;

/**
 * @Classname HttpHandelrWebImpl2
 * @Description TODO
 * @Date 2023/4/26 9:51
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Order(2)
@Compontent
public class HttpHandelrWebImpl2 implements HttpHandlerWeb {

    @Override
    public void beforeHandler(ServletRequest request, ServletResponse response, List<Object> objects) {
        System.out.println("拦截器2(前)执行了");
    }

    @Override
    public Object afterHandler(ServletRequest request, ServletResponse response, Object obj) {
        System.out.println("拦截器2(后)执行了");
        return obj;
    }


}
